﻿using System.Diagnostics;

namespace BluetoothDemoApp.Print
{
    public class PreventLostContext
    {
        PreventLostSuper super;
        public PreventLostContext(byte[] asb)
        {
            super = PreventLostFactary.HandlerFactory(asb);
        }

        public PrinterState Tactic(string IP)
        {
            if (super != null)
            {
                return super.Handling(IP);
            }
            Debug.WriteLine("没有处理该打印机状态");
            return PrinterState.UnCatchPrinter;
        }
    }
}
